package com.vero.inventory.controller;

import java.util.List;
import javax.servlet.http.HttpServletResponse;

import com.vero.inventory.service.IVaccineService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.vero.common.log.annotation.Log;
import com.vero.common.log.enums.BusinessType;
import com.vero.common.security.annotation.RequiresPermissions;
import com.vero.system.api.domain.Vaccine;
import com.vero.common.core.web.controller.BaseController;
import com.vero.common.core.web.domain.AjaxResult;
import com.vero.common.core.utils.poi.ExcelUtil;
import com.vero.common.core.web.page.TableDataInfo;

/**
 * 疫苗信息Controller
 * 
 * @author ruoyi
 * @date 2025-03-06
 */
@RestController
@RequestMapping("/vaccine")
public class VaccineController extends BaseController
{
    @Autowired
    private IVaccineService vaccineService;

    /**
     * 新增或减少疫苗库存
     */
    @Log(title = "新增或减少疫苗库存", businessType = BusinessType.UPDATE)
    @PutMapping("updateVaccineStock")
    public AjaxResult updateVaccineStock(@RequestBody Vaccine vaccine)
    {
        return toAjax(vaccineService.updateVaccineStock(vaccine));
    }

}
